package com.dobby.pea.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.io.StringReader;
import java.time.LocalDateTime;

/**采购订单
 * @author Dobby
 * @version 1.0
 */
@Data
public class tbPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //发布采购用户
    private Long userId;

    //采购名字
    private String name;

    //采购地址
    private String address;

    //采购类型
    private Long typeId;

    //需要采购的数量
    private String number;

    //采购订单的细节信息
    private String detail;

    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private Long updateUser;

    private int isDeleted; //逻辑删除


}
